package com.x.erp.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Service;
import com.x.erp.dao.CarLogDao;
import com.x.erp.model.CarLog;
import com.x.erp.rpc.CarLogRpcService;
import com.x.framework.exception.BusinessException;
import com.x.framework.exception.ExceptionCode;
import com.x.framework.service.BaseService;
/**
 * 车辆日志记录服务
 */
@Component
@Service(interfaceName = "com.x.erp.rpc.CarLogRpcService", timeout = 60000)
public class CarLogService extends BaseService implements CarLogRpcService {


	@Autowired
	private CarLogDao carLogDao;//车辆日志记录服务DAO

	/**
	 * 查询车辆日志记录列表
	 * @param carLog
	 * @return
	 */
	
	@Override
	public List<CarLog> selectCarLogList(CarLog carLog) {
		try {
			return carLogDao.selectCarLogList(carLog);
		} catch (Exception e) {
			throw new BusinessException(ExceptionCode.EXCEPTION_CODE0000, e);
		}
	}

}
